#!/bin/sh
# ensure that all database files are readable
prefix=/usr
terminfodir=${prefix}/share/terminfo

for d in ${terminfodir}/* ; do
	if [ -d ${d} ]; then
		(cd $d && chmod 644 *)
		chmod 755 ${d}
	fi
done
chmod 755 ${terminfodir}

for f in ${prefix}/share/tabset/* ; do
	chmod 644 $f
done
chmod 755 ${prefix}/share/tabset

